<template>
	<view class="cardMost">
		<view class="cardFrame">
			<view class="pigCode">
				<text>猪只编号：{{data.code}}</text>
			</view>
			<view class="line"></view>
			<view class="cardContents">
				<view class="cardContent">
					<text>所在厂区：{{data.FactoryName}}</text>
					<text>所在栋舍</text>
				</view>
				<view class="cardContent">
					<text>所在栏位：{{data.deptName}}</text>
				</view>
				<view class="cardContent">
					<text>养殖状态：{{data.status}}</text>
					<text>耳标：{{data.earCode}}</text>
				</view>
				<view class="cardContent">
					<text>胎次状态：{{data.parity}}</text>
				</view>
				<view class="cardContent">
					<text>备注：{{data.remark}}</text>
				</view>
				<view class="line"></view>
				<view class="cardContentLast">
					<text>创建时间：{{data.createdTime}}</text>
					<text>负责人：{{data.createdBy}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			data: {
				type: Object,
				required: true,
			}
		}
	}
</script>

<style lang="scss">
	.cardMost{
		width: 100%;
		display: flex;
		justify-content: center;
		margin: 20rpx 0rpx;
	}
	.cardFrame{
		width: 75%;
		padding: 10rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: start;
		font-size: 20rpx;
		border: 1rpx solid black;
		padding: 20rpx 30rpx;
 
	}
	.line{
		height: 5rpx;
		width: 100%;
		background-color:#D6D6D6 ;
		box-sizing: initial;
		margin: 10rpx 0rpx;
	}
	.cardContent{
		display: flex;
		justify-content: space-between;
		margin: 12rpx 0rpx;
	 
	}
	.cardContents{
		width: 100%;
		margin: 0;
	 
	}
    .pigCode{
		margin: 10rpx 0rpx;
	}
	.cardContentLast{
		display: flex;
		justify-content: space-between;
		margin-top: 10rpx ;
		font-size: 18rpx;
		font-weight: 400;
	}
	text{
		padding: 5rpx 0rpx;
	}
</style>